package factory

import (
	"cdam/qiongqi/listener"
	"cdam/workflow"
)

var reflectMap map[string]listener.Listener

func InitListener()  {
	if reflectMap == nil {
		reflectMap = map[string]listener.Listener{}
	}
	reflectMap["workflow.mategroupapprove"]= &workflow.Mategroupworkflow{}
}

func GetListenerByName(name string) listener.Listener {
	return reflectMap[name]
}
